package com.zebra.remoting.config;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

/**
 * @Date 2020/7/7 0007
 **/
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class StateMessage extends ZebraBaseMessage<StateMessage> {

    private int state; //200 success

    @Override
    public void write(ByteBuf b) {
        writeInt(b, this.state);
    }

    @Override
    public StateMessage read(ByteBuf b) {
        this.state =  readInt(b);
        return this;
    }


}
